package com.gkjsj.exam3;
import org.springframework.context.ApplicationContext;
import 
    org.springframework.context.support.ClassPathXmlApplicationContext;

// 测试类
public class TestAnnotationAspectj {
	public static void main(String args[]) {
		String xmlPath = 
                  "com/gkjsj/exam3/applicationContext.xml";
		ApplicationContext applicationContext = 
                 new ClassPathXmlApplicationContext(xmlPath);
		// 1 从spring容器获得内容
		TeachaClass teachaClass = (TeachaClass) applicationContext.getBean("teachaClass");
		// 2 执行方法
		teachaClass.take();
	}
}
